package com.zzyl.service;

import com.zzyl.base.PageResponse;
import com.zzyl.dto.ReservationDto;
import com.zzyl.vo.ReservationVo;
import com.zzyl.vo.TimeCountVo;

import java.time.LocalDateTime;
import java.util.List;

public interface ReservationService {

    //查询指定用户当天的取消预约次数
    Integer getCancelledReservationCount(Long userId);

    //查询每个时间段剩余预约次数
    List<TimeCountVo> countReservationsForEachTimeWithinTimeRange(LocalDateTime time);

    //添加预约信息
    void add(ReservationDto dto);

    //分页查找预约信息
    PageResponse<ReservationVo> findByPage(Integer pageNum, Integer pageSize, Integer status);

    //取消预约
    void cancelReservation(Long id);
}
